using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace DomainModel.Entities
{

public class RentalPolicy
{

[KeyAttribute]
[Display(Name = "Rental Policy Id")]
public int RentalPolicyId { get; set; }

[Display(Name = "Policy Id")]
public int PolicyId { get; set; }

[Display(Name = "Last Update")]
public DateTime? LastUpdate { get; set; }

[Display(Name = "Is Approved")]
public bool IsApproved { get; set; }

[StringLength(500, ErrorMessage = "The User Name value cannot exceed 500 characters. ")]
[Required(ErrorMessage = "User Name is required field.")]
[Display(Name = "User Name")]
public string UserName { get; set; }

[StringLength(500, ErrorMessage = "The Name value cannot exceed 500 characters. ")]
[Required(ErrorMessage = "Name is required field.")]
[Display(Name = "Name")]
public string Name { get; set; }

[StringLength(500, ErrorMessage = "The Name_ Ar value cannot exceed 500 characters. ")]
[Required(ErrorMessage = "Name_ Ar is required field.")]
[Display(Name = "Name_ Ar")]
public string Name_Ar { get; set; }


}
}
